package cn.jit.ssm.utils;

import org.aspectj.apache.bcel.classfile.Code;

/**
 * @author: Cecurio
 * @create: 2017-12-07 0:58
 **/
public class SecureValidUtil {
    public static String codesToString(String[] codes) {
        int len = codes.length;
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < len; ++i) {
            if (i == 0) {
                sb.append("[ ").append(codes[i]);
            }
            if (i > 0) {
                sb.append(" , ").append(codes[i]);
            }
            if (i == (len - 1)) {
                sb.append(" ]");
            }
        }
        return sb.toString();
    }
}
